from localization . english import localization_english
from localization . russian import localization_russian

def check_all_localization_strings ( test , * path ) :
    localizations = \
        [ localization_english
        , localization_russian
        ]
    for localization in localizations :
        position = localization ( )
        for step in path :
            test . assume_true ( hasattr ( position , step ) )
            position = getattr ( position , step ) ( )
        test . assume_is_str ( position )
        test . assume_not_empty ( position )

class localization_tests :
    'localization'
    def __init__ ( self , test ) :
        self . _test = test
    def test_localization_application_title ( self ) :
        check_all_localization_strings ( self . _test , 'localization_application_title' )
    def test_localization_browser_creation_time ( self ) :
        check_all_localization_strings ( self . _test , 'localization_browser_creation_time' )
    def test_localization_browser_existing_name ( self ) :
        check_all_localization_strings ( self . _test , 'localization_browser_existing_name' )
    def test_localization_browser_modification_time ( self ) :
        check_all_localization_strings ( self . _test , 'localization_browser_modification_time' )
    def test_localization_browser_number ( self ) :
        check_all_localization_strings ( self . _test , 'localization_browser_number' )
    def test_localization_browser_return ( self ) :
        check_all_localization_strings ( self . _test , 'localization_browser_return' )
    def test_localization_browser_size ( self ) :
        check_all_localization_strings ( self . _test , 'localization_browser_size' )
    def test_localization_copy_menu_already_exists ( self ) :
        check_all_localization_strings ( self . _test , 'localization_copy_menu_already_exists' )
    def test_localization_copy_menu_copy ( self ) :
        check_all_localization_strings ( self . _test , 'localization_copy_menu_copy' )
    def test_localization_copy_menu_new_name ( self ) :
        check_all_localization_strings ( self . _test , 'localization_copy_menu_new_name' )
    def test_localization_copy_menu_no_entries ( self ) :
        check_all_localization_strings ( self . _test , 'localization_copy_menu_no_entries' )
    def test_localization_copy_menu_title ( self ) :
        check_all_localization_strings ( self . _test , 'localization_copy_menu_title' )
    def test_localization_creation_menu_already_exists ( self ) :
        check_all_localization_strings ( self . _test , 'localization_creation_menu_already_exists' )
    def test_localization_creation_menu_create ( self ) :
        check_all_localization_strings ( self . _test , 'localization_creation_menu_create' )
    def test_localization_creation_menu_new_name ( self ) :
        check_all_localization_strings ( self . _test , 'localization_creation_menu_new_name' )
    def test_localization_creation_menu_title ( self ) :
        check_all_localization_strings ( self . _test , 'localization_creation_menu_title' )
    def test_localization_edit_menu_continue ( self ) :
        check_all_localization_strings ( self . _test , 'localization_edit_menu_continue' )
    def test_localization_edit_menu_return_to_main_menu ( self ) :
        check_all_localization_strings ( self . _test , 'localization_edit_menu_return_to_main_menu' )
    def test_localization_edit_menu_save ( self ) :
        check_all_localization_strings ( self . _test , 'localization_edit_menu_save' )
    def test_localization_edit_menu_save_as ( self ) :
        check_all_localization_strings ( self . _test , 'localization_edit_menu_save_as' )
    def test_localization_edit_menu_title ( self ) :
        check_all_localization_strings ( self . _test , 'localization_edit_menu_title' )
    def test_localization_editor_menu_button ( self ) :
        check_all_localization_strings ( self . _test , 'localization_editor_menu_button' )
    def test_localization_editor_title ( self ) :
        check_all_localization_strings ( self . _test , 'localization_editor_title' )
    def test_localization_main_menu_copy ( self ) :
        check_all_localization_strings ( self . _test , 'localization_main_menu_copy' )
    def test_localization_main_menu_create ( self ) :
        check_all_localization_strings ( self . _test , 'localization_main_menu_create' )
    def test_localization_main_menu_open ( self ) :
        check_all_localization_strings ( self . _test , 'localization_main_menu_open' )
    def test_localization_main_menu_quit ( self ) :
        check_all_localization_strings ( self . _test , 'localization_main_menu_quit' )
    def test_localization_main_menu_rename ( self ) :
        check_all_localization_strings ( self . _test , 'localization_main_menu_rename' )
    def test_localization_main_menu_title ( self ) :
        check_all_localization_strings ( self . _test , 'localization_main_menu_title' )
    def test_localization_open_menu_new_name ( self ) :
        check_all_localization_strings ( self . _test , 'localization_open_menu_new_name' )
    def test_localization_open_menu_no_entries ( self ) :
        check_all_localization_strings ( self . _test , 'localization_open_menu_no_entries' )
    def test_localization_open_menu_open ( self ) :
        check_all_localization_strings ( self . _test , 'localization_open_menu_open' )
    def test_localization_open_menu_title ( self ) :
        check_all_localization_strings ( self . _test , 'localization_open_menu_title' )
    def test_localization_rename_menu_already_exists ( self ) :
        check_all_localization_strings ( self . _test , 'localization_rename_menu_already_exists' )
    def test_localization_rename_menu_new_name ( self ) :
        check_all_localization_strings ( self . _test , 'localization_rename_menu_new_name' )
    def test_localization_rename_menu_no_entries ( self ) :
        check_all_localization_strings ( self . _test , 'localization_rename_menu_no_entries' )
    def test_localization_rename_menu_rename ( self ) :
        check_all_localization_strings ( self . _test , 'localization_rename_menu_rename' )
    def test_localization_rename_menu_title ( self ) :
        check_all_localization_strings ( self . _test , 'localization_rename_menu_title' )
    def test_localization_save_as_menu_already_exists ( self ) :
        check_all_localization_strings ( self . _test , 'localization_save_as_menu_already_exists' )
    def test_localization_save_as_menu_new_name ( self ) :
        check_all_localization_strings ( self . _test , 'localization_save_as_menu_new_name' )
    def test_localization_save_as_menu_save ( self ) :
        check_all_localization_strings ( self . _test , 'localization_save_as_menu_save' )
    def test_localization_save_as_menu_title ( self ) :
        check_all_localization_strings ( self . _test , 'localization_save_as_menu_title' )
    def test_localization_welcome_footing ( self ) :
        check_all_localization_strings ( self . _test , 'localization_welcome_footing' )
    def test_localization_welcome_header ( self ) :
        check_all_localization_strings ( self . _test , 'localization_welcome_header' )
    def test_localization_welcome_title ( self ) :
        check_all_localization_strings ( self . _test , 'localization_welcome_title' )
